package study.member.sungil.oop2;

public class CaptionTest {
	
	public static void main(String[] args) {
		CaptionTv ctv  = new CaptionTv();
		
		ctv.channel = 10;
		ctv.channelUp();
		System.out.println(ctv.channel);
		ctv.displayCaption("hello , World");
		ctv.caption = true;
		ctv.displayCaption("Hello, World");
		
		Tv tv = new CaptionTv();
		System.out.println(tv.channel);
		System.out.println(tv.power);
		tv.channelDown();
		tv.channelUp();
		CaptionTv tt = (CaptionTv)tv;
		// (CaptionTv)tv.displayCaption("aaa"); 에러 왜 에러나는지 알려줘 
		tt.displayCaption("aaa");
	}

}
